package com.intct.func;

import cn.hutool.core.util.DesensitizedUtil;
import org.apache.flink.table.functions.ScalarFunction;

/**
 * @author gufg
 * @since 2025-10-21 16:36
 */
public class DesensitizationFunction extends ScalarFunction {

    public String eval(String id, int front, int end) {
        // 调用hutool工具包中的脱敏方法
        return DesensitizedUtil.idCardNum(id, front, end);
    }
}
